package com.hr.borrowing.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hr.common.annotation.Excel;
import com.hr.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 借支权限对象 borrowing
 * 
 * @author guan
 * @date 2024-07-17
 */
public class Borrowing extends BaseEntity
{
    private static final long serialVersionUID = 13235L;

    /** 可借支次数 */
    private Integer number;

    /** 可借支金额 */
    private Integer amount;

    /** 已借金额 */
    private Integer borrowedAmount;

    /** 已借次数 */
    private Integer borrowedNumber;

    /** 员工id */
    private Long userId;

    /**
     * 时间范围筛选-开始时间
     * @param userId
     */
    private String startDate;

    /**
     * 时间范围筛选-结束时间
     * @param userId
     */
    private String endDate;

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public List<Date> getTimes() {
        return times;
    }

    public void setTimes(List<Date> times) {
        this.times = times;
    }

    /**
     * 时间范围筛选
     * @param
     */
    private List<Date> times;

    public Integer getBorrowedNumber() {
        return borrowedNumber;
    }

    public void setBorrowedNumber(Integer borrowedNumber) {
        this.borrowedNumber = borrowedNumber;
    }



    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }
    public void setAmount(Integer amount) 
    {
        this.amount = amount;
    }

    public Integer getAmount() 
    {
        return amount;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBorrowedAmount(Integer borrowedAmount) 
    {
        this.borrowedAmount = borrowedAmount;
    }

    public Integer getBorrowedAmount() 
    {
        return borrowedAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("number", getNumber())
            .append("amount", getAmount())
            .append("userId", getUserId())
            .append("borrowedAmount", getBorrowedAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
